﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace ServiceDesk.DAL
{
    public class TaskMap: ClassMap<Task>
    {
        public TaskMap()
        {
            Id(_ => _.Guid).GeneratedBy.Guid();
            Map(_ => _.TaskState).Not.Nullable();
            Map(_ => _.Description).Length(10000);
            References(_ => _.User);
        }
    }
}
